package com.wave12.pro_cart.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "t_cart")
@Data
public class Cart {
    @Id
    private Long id;
    private String ownerId;
    private String kbaseId;
    private String productId;
    private String productName;
    private String userId;
    @Transient
    private String userName;
    private BigDecimal price;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date dt;
    private Integer payType;
    private String thirdCartNo;
    private String note;
}
